const fs = require('fs');
const path = require('path');
fs.readFile(path.resolve(__dirname, 'test.js'), () => {
  setTimeout(() => {
    console.log('setTimout');
  }, 0);

  setImmediate/** ←node特有的,也是宏任务*/(() => {
    console.log('setImmediate');
  });
});

/** 这样永远是setImmediate先执行*/
